From: Frédéric Pierret (fepitre) Date: Sat, 28 Nov 2020 22:00:31 +0000 (+0100) Subject: [PATCH] data: workaround for hardcoded absolute path data in variables X-Git-Tag: archive/raspbian/0.74.0-1+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=047f52e6c5f650557267c14ffa4a797fefa83820;p=libdnf.git [PATCH] data: workaround for hardcoded absolute path data in variables We use clean env for each build to use /tmp as location. This is a temporary solution until upstream/we found a better way for that. Gbp-Pq: Name 0012-data-workaround-for-hardcoded-absolute-path-data-in-.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d2642b0..83b20f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -133,7 +133,7 @@ add_definitions(-DGETTEXT_DOMAIN="libdnf") add_definitions(-DG_LOG_DOMAIN="libdnf") # tests -add_definitions(-DTESTDATADIR="${CMAKE_SOURCE_DIR}/data/tests") +add_definitions(-DTESTDATADIR="/tmp/data/tests") # librhsm if(ENABLE_RHSM_SUPPORT) @@ -187,3 +187,4 @@ endif() add_subdirectory(etc) +file(COPY data DESTINATION /tmp)